<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>-代理商</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <div>
  	<jsp:include page="Top.jsp"></jsp:include>
  </div>
<br/> 
  <br/> 
  <div>
  <input type="button" value="新增代理商" onclick="window.location='<%=basePath%>addDailishang.jsp';"/> 
  <br/>
  <br/>

 	<table width="" height="" border="1" bordercolor="#9DB6D2">
			<tr  style="background-color: #4773A3">
				<td>账号</td>
				<td>名称</td>
				<td>会员数</td>
				<td>信用额度</td>
				<td>会员限度</td>
				<td>登陆次数</td>
				<td>最后登陆日期</td>
				<td>新增日期</td>
				<td>功能</td>
			</tr>
		<c:forEach var="dailishang" items="${dailishangs}">
			<tr>
				<td>
				${dailishang.account}
				</td>
				<td>
				${dailishang.name}
				</td>
				<td>
				${dailishang.vip}
				</td>
				<td>
				${dailishang.credit}
				</td>
				<td>
				${dailishang.vipcount}
				</td>
				<td>
				${dailishang.count}
				</td>
				<c:if test="${dailishang.lastLog!=null}">
				<td>
					${dailishang.lastLog}
				</td>
				</c:if>
				<c:if test="${dailishang.lastLog==null}">
				<td align="center">
					未登陆过
				</td>
				</c:if>
				<td>
					${dailishang.createTime}
				</td>
				<td>
					<a href="<%=basePath%>dailishang.do?op=toupdata&id=${dailishang.id}">修改</a>&nbsp / &nbsp
					<a href="<%=basePath%>dailishang.do?op=delete&id=${dailishang.id}" onclick="return confirm('确认要删除吗?');">删除</a>
				</td>
			</tr>
		</c:forEach>
  </table>
  </div>
  </body>
</html>
